<#include "/template/_openwin.html" /> 
<#assign title="修改人员"> 
<@head>
</@head> <@buttons>

<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-save'" onclick="save()">保存并关闭</a>
<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-cancel'" onclick="javascript:window.close();">取消</a>
</@buttons> <@body>

<div>
	<form id="ff" method="post" action="${root!}/frameuser/update">
		<input type="hidden" name="user.id" value="${user.id!}" />
		<table class="form-table">
			
			<tr>
				<td>登录名:</td>
				<td><input style="width: 99%" class="easyui-validatebox"
					type="text" name="user.username" value="${user.username!}" data-options="required:true"></input></td>
			</tr>
			<tr>
				<td>显示名:</td>
				<td><input style="width: 99%" class="easyui-validatebox"
					type="text" name="user.displayname" value="${user.displayname!}" data-options="required:true"></input></td>
			</tr>
			<tr>
				<td>性别:</td>
				<td><@select id="ss" name="user.sex" value="${user.sex!}" >
                    	<option value="0" >男</option>
                    	<option value="1" >女</option>
                    </@select></input></td>
			</tr>
			<tr>
				<td>邮箱:</td>
				<td><input style="width: 99%" class="easyui-validatebox"
					type="text" name="user.mail" value="${user.mail!}" data-options="required:false"></input></td>
			</tr>
			<tr>
				<td>电话:</td>
				<td><input style="width: 99%" class="easyui-validatebox"
					type="text" name="user.tel" value="${user.tel!}" data-options="required:false"></input></td>
			</tr>
		</table>
	</form>
</div>
</@body>
<script type="text/javascript">
function save(){
	$('#ff').form('submit',{
		dataType:"json",
		success:function(msg){
			alert(msg);
			window.returnValue="1";
			window.close();
		}
	});
}

</script>